package SinglePattern;

public class Test {
    public static void main(String[] args) {
        test1();
        test2();
    }
    public static void test1() {
        EagerInitialization instance1 = EagerInitialization.getInstance();
        EagerInitialization instance2 = EagerInitialization.getInstance();
        System.out.println(instance1 == instance2);
    }
    public static void test2() {
        LazyInitialization instance1 = LazyInitialization.getInstance();
        LazyInitialization instance2 = LazyInitialization.getInstance();
        System.out.println(instance1 == instance2);
    }
}